- conversation_url = person_transaction_url(@recipient, @url_params.merge({:id => @conversation.id.to_s}))
- url = new_person_message_feedback_url(@recipient, @url_params.merge({:message_id => @conversation.id.to_s}))

%tr
  %td.person-name
    - recipient_name = PersonViewUtils.person_display_name_for_type(@recipient, 'first_name_only')
    - listing_link = link_to @conversation.listing.title, listing_url(@url_params.merge(id: @conversation.listing_id))
    - stripe_confirmed = @conversation.payment_gateway == :stripe && @conversation.status == 'confirmed'
    - if @conversation.last_transition_by_admin?
      - other_party_full_name = t('emails.transaction_confirmed.team_title')
    - else
      - other_party_full_name = @conversation.other_party(@recipient).name(@conversation.community)
    %h1
      = t("emails.common.hi", name: recipient_name)
      = t("emails.transaction_confirmed_v2.headline_#{@conversation.status}", other_party_full_name: other_party_full_name, listing_link: listing_link).html_safe

%tr
  %td.email-content
    %p.text-bold
      - if stripe_confirmed && @recipient_is_seller
        = t("emails.transaction_confirmed_v2.stripe.has_marked_request_as_confirmed", :request => @conversation.listing.title)
      = t("emails.transaction_confirmed_v2.can_give_feedback", :other_party_given_name => PersonViewUtils.person_display_name_for_type(@conversation.other_party(@recipient), "first_name_only"))

    %p
      = t("emails.transaction_confirmed.giving_feedback_is_good_idea", :other_party_given_name => PersonViewUtils.person_display_name_for_type(@conversation.other_party(@recipient), "first_name_only"))

= render :partial => "action_button-v2", :locals => { :text => t("emails.transaction_confirmed.give_feedback_to", :other_party_given_name => PersonViewUtils.person_display_name_for_type(@conversation.other_party(@recipient), "first_name_only")), :url => url}
